#pragma once

class IRender;
class ICamera;
/**
========================
The visual representation of a game object
========================
*/
class IView3D
{
public:
    /** Update any animations and such */
    virtual void Update(long dt)=0;
    /** Blit this to the screen */
    virtual void Render( IRender *r, ICamera* cam )=0;

    /** Set visible or not */
    bool IsVisible() { return m_visible; };
    void SetVisible(bool b) { m_visible = b; };

    /** Get the reference id */
    unsigned int  GetID() { return m_id; };
    void SetID(int i) { m_id = i; };
        
    virtual ~IView3D() {};

protected:
    unsigned int    m_id;       
    bool            m_visible;

};